<?php
header("content-type:text/html;charset=utf-8");

date_default_timezone_set("PRC");


$commentnewsid=$_POST['newsid'];
$commentnext=$_POST['next'];
$commentnewscontent="";


$sql="SELECT * FROM comment where commentnewsid='$commentnewsid' ORDER BY commentpraisetimes DESC,commenttime DESC LIMIT ".$commentnext.",5";
require_once("db_comment_content.php"); 
$comment=new db_comment;
$commentnewscontent=$comment->commentcontent($sql);
$newscommentnumber=$comment->commentcontentnumber($sql);

if($newscommentnumber==0){
	echo "1";
}
else{
	echo $commentnewscontent;
}
?>